package com.whynot.frame.ms.entities;

import com.whynot.frame.basic.mybatis.model.BaseModel;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 描    述:部门实体
 * 创建时间: 2018/07/01
 */
@TableName("tbl_sys_dept")
@Data
@ApiModel(value = "部门对象")
public class SysDept extends BaseModel<SysDept> {
    @ApiModelProperty(value = "主键")
    private Integer id;
    @ApiModelProperty(value = "部门名")
    private String deptName;
    @ApiModelProperty(value = "状态：1启用,0停用")
    private Integer enabled;
    @ApiModelProperty(value = "父Id")
    private String parentId;
    @ApiModelProperty(value = "是否叶子节点：1是,0不是")
    private Integer isLeaf;
    @ApiModelProperty(value = "排序号")
    private Integer sortNo;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}